package com.thh.common.filter;

import com.alibaba.fastjson2.filter.SimplePropertyPreFilter;

public class MySimplePropertyPreFilter extends SimplePropertyPreFilter {
        public MySimplePropertyPreFilter() {
            super(new String[0]);
        }

        public MySimplePropertyPreFilter(String... properties) {
            super(properties);
        }

        public MySimplePropertyPreFilter(Class<?> clazz, String... properties) {
            super(clazz, properties);
        }

        public MySimplePropertyPreFilter addExcludes(String... filters) {
            for(int i = 0; i < filters.length; ++i) {
                this.getExcludes().add(filters[i]);
            }

            return this;
        }

        public MySimplePropertyPreFilter addIncludes(String... filters) {
            for(int i = 0; i < filters.length; ++i) {
                this.getIncludes().add(filters[i]);
            }

            return this;
        }
    }